home *** CD-ROM | disk | FTP | other *** search
Text File | 1986-09-08 | 3.0 KB | 78 lines | [TEXT/MACA] |
- Notes on the source for the game of Tablut
- Version 1.1, September 7, 1986
- Brad Needham
-
- Tablut was written in Manx Aztec C using Manx' developer's version 1.06G
- and Edit (of Oct 28 '84) on a 512K, double-drive Mac (old Roms).
- Although some of Tablut's resources are created with rmaker, most of its
- resources were created with ResEdit and were edited with REdit. As of
- this writing the source files occupy about 110K and the object files take
- about 36K.
-
- To build Tablut
- Cd to your Tablut source directory.
-
- cd Tablut:tblt
-
- Compile each .c source file in that directory.
-
- cc tabsh.c; cc dlog.c; cc draw.c; ....
-
- Link all the resultant objects into a double-clickable application called
- tablut.code.
-
- ln -m -o tablut.code sys:lib/sacroot.o *.o -lc
-
- Run rmaker.
-
- sys2:bin/rmaker
-
- Once in rmaker, open Tablut:tblt/tablut.r.
- When rmaker completes, the application "tablut" will be ready to play.
-
- Tablut Source Files
- This section gives a brief description of each file in the tblt folder.
-
- name description
- ---- -----------
- INFO This file
- board A macpaint file containing pictures of the board
- and pieces, along with instructions on how to modify them.
- tabres.res Most of the interesting resources for Tablut.
- Edit this file with REdit or ResEdit.
- tablut.r An rmaker source file describing some other resources
- (e.g., menus, strings, and controls).
- progerr.h Definitions of the program-specific error message IDs
- for Tablut. See error.c.
- tablut.h Common definitions and declarations for Tablut.
- Nearly every Tablut source file includes this file.
- anim.c Animation code. Handles moving a piece's image, either
- automatically or by tracking the mouse.
- cntl.c Handles the controls for the window (buttons, scrollbar).
- dlog.c Dialog window support routines. Since this is a
- general-purpose file, it contains a couple of routines
- that Tablut doesn't use.
- draw.c High-level window-drawing routines. Handles update events
- and drawing of the board and controls.
- error.c Displays I/O- and program- specific error alerts.
- Works with include/syserr.h and progerr.h.
- file.c Routines to read and write game files.
- finder.c Provides Tablut's interface with the finder:
- opening and printing files from the finder, and directly
- launching another application.
- fsmisc.c Miscellaneous file routines. General-purpose routines to
- create or find a file of a specific type.
- grid.c, grid2.c Routines to handle the grid abstraction of the board:
- moving a piece to a given square, removing the piece on a
- given square, etc.
- menu.c Handles the menu interface.
- misc.c Miscellaneous general-purpose support routines.
- move.c Enforces the rules of piece movement and capture.
- (Some rule-enforcement is also done via mouse-tracking
- in anim.c.)
- piece.c The nitty-gritty of drawing a piece on the screen.
- record.c Maintains the memory-resident record of the current game.
- event.c The main routine and main event loop.
- objects A folder containing the object files and other temporaries
- (just to keep them out of the way).
-